package com.dl698.axdr;

/**
 * FollowReport选择枚举
 * 定义FollowReport数据类型的选择值
 * 
 * @author wind
 * @version 1.1.1
 */
public enum FollowReportChoice {
    _ERR_NONE_SELECTED(-1),
    RESULT_NORMAL(1),
    RESULT_RECORD(2);

    private final int value;

    FollowReportChoice(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public static FollowReportChoice fromValue(long value) {
        for (FollowReportChoice choice : FollowReportChoice.values()) {
            if (choice.value == value) {
                return choice;
            }
        }
        throw new IllegalArgumentException("No FollowReportChoice with value: " + value);
    }
}